import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';

import './router_handler.dart';


class Routes {
  static String root = '/';
  static String detailsPage = '/detail';
  static void configureRoutes(Router router){
    router.notFoundHandler = new Handler(
      //未找到的路由
      handlerFunc: (BuildContext context,Map<String,List<String>> params){
        print('ERROR===>ROUTE WAS NOT FONUMD!!!');
      }
    );
    router.define(detailsPage,handler:detailsHandler);
  }
}
